<script type="text/javascript">
    // Can also be used with $(document).ready()
    jQuery(window).load(function() {
        jQuery('.flexslider').flexslider({
            animation: "slide"
        });
    });
</script>

<?php
    $args = array(
        'category_name' => 'slider',
        'post_type' => 'post',
        'post_status' => 'publish',
        'posts_per_page' => 5
    );
    $my_query = null;
    $my_query = new WP_Query($args);
?>
<div class="flexslider">
    <ul class="slides">
        <?php if ($my_query->have_posts()) {
                while ($my_query->have_posts()) : $my_query->the_post(); ?>
                    <li class="ca-item">
                        <div class="ca-item-main">
                            <?php the_post_thumbnail('large'); ?>
                            <div class="ca-item-info">
                                <div class="ca-item-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
                                <div class="ca-item-date"><?php the_time('j F, Y'); ?></div>
                            </div>
                        </div>
                    </li>
        <?php   endwhile;
            } else {
                echo 'No se encontraron art&iacute;culos';
            }
            wp_reset_query(); 
        ?>
    </ul>
</div>